package com.mall.business.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.business.domain.TOrderItem;
import org.apache.ibatis.annotations.Mapper;

/**
 * 订单明细项Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-30
 */
@Mapper
public interface TOrderItemMapper  extends BaseMapper<TOrderItem>
{
    /**
     * 查询订单明细项
     *
     * @param orderItemId 订单明细项主键
     * @return 订单明细项
     */
    public TOrderItem selectTOrderItemByOrderItemId(String orderItemId);

    /**
     * 查询订单明细项列表
     *
     * @param tOrderItem 订单明细项
     * @return 订单明细项集合
     */
    public List<TOrderItem> selectTOrderItemList(TOrderItem tOrderItem);

    /**
     * 新增订单明细项
     *
     * @param tOrderItem 订单明细项
     * @return 结果
     */
    public int insertTOrderItem(TOrderItem tOrderItem);

    /**
     * 修改订单明细项
     *
     * @param tOrderItem 订单明细项
     * @return 结果
     */
    public int updateTOrderItem(TOrderItem tOrderItem);

    /**
     * 删除订单明细项
     *
     * @param orderItemId 订单明细项主键
     * @return 结果
     */
    public int deleteTOrderItemByOrderItemId(String orderItemId);

    /**
     * 批量删除订单明细项
     *
     * @param orderItemIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTOrderItemByOrderItemIds(String[] orderItemIds);
}
